/* eslint-disable */
import Layout from '../views/layout/Layout';

/**
 * @for meta
 * @param title 标题
 * @param icon 图标
 * @param name 用来匹配路由名称
 * @param check
 */


const tronRouter = [
  // 会员中心、钱包中心
  {
    path: '/my-wallet',
    component: Layout,
    meta: { title: 'mywallet' },
    children: [
      {
        path: '',
        component: resolve => require(['@/views/myWallet/Index.vue'], resolve),
        meta: { title: 'mywallet' },
        children: [
          {
            path: '/',
            name: 'vueCoinList',
            component: resolve => require(['@/views/myWallet/components/VueCoinList'], resolve),
            meta: { title: 'mywallet', isUser: true  },
          },
        ],
      },
    ]
  },
  // 矿池
  {
    path: '/newpool/tron',
    component: Layout,
    meta: { title: 'newpoolTron' },
    children: [
      {
        path: '/',
        name: 'newposTron',
        component: resolve => require(['@/views/newpool/Tron'], resolve),
        meta: { title: 'newpos' },
      },
    ]
  },
  // nb活动
  {
    path: '/events/nb-activity',
    component: Layout,
    redirect: '/events/nb-activity',
    meta: { title: 'nbActivity' },
    children: [
      {
        path: '',
        name: 'nbActivity',
        component: resolve => require(['@/views/activity/nbActivity/Index'], resolve),
        meta: { title: 'nbActivity', check: true },
      }
    ],
  },
];

export default tronRouter